$(function(){
	var offset = 0;
	var timer;
	function autoPlay(){
			timer = setInterval(function(){
			offset += -10;
			if(offset <= -600){
				offset = 0;
			}
			$("ul").css("margin-left",offset);
		},50);
	}
	autoPlay();
	$("li").hover(function(){
		clearInterval(timer);
		$(this).siblings().fadeTo(500,0.5);
		$(this).fadeTo(500,1);
	},function(){
		autoPlay();
		$(this).fadeTo(500,1);
	});
})
